﻿<Window x:Class="ParsecClient.ManageTimers"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ManageTimers" WindowStyle="None" Background="Transparent" AllowsTransparency="True" ResizeMode="NoResize" Loaded="Window_Loaded"  WindowStartupLocation="CenterOwner" Height="600" Width="700" ShowInTaskbar="False">
    <Border CornerRadius="3" BorderBrush="#FF444444" BorderThickness="1" Margin="15">
        <Grid Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <TextBlock FontSize="18" FontWeight="Normal" Foreground="#FF000000" Grid.Row="0">Manage Timers</TextBlock>
                <TextBlock FontSize="13" FontWeight="Normal" Foreground="#FF000000" Margin="10 5 10 5" TextWrapping="Wrap" Grid.Row="1">Click <Hyperlink FontWeight="Normal" Click="HelpButtonClick" Name="lnkTimerOff">here</Hyperlink> for info on why your timers might not be working correctly</TextBlock>
                <Popup StaysOpen="False" Name="popTimerOff" Placement="MousePoint" MaxWidth="500" AllowsTransparency="True" Focusable="False" >
                    <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                        <StackPanel Margin="10">
                            <TextBlock FontSize="14" FontWeight="Bold" Foreground="#FF000000" Margin="0 0 0 0" TextWrapping="Wrap">Parsec Uses a Time Server</TextBlock>
                            <StackPanel Margin="10 0 0 10">
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">When you start up Parsec it contacts a time server to determine how "off" your clock is from Server time.</TextBlock>
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">Syncing your PC clock while Parsec is running will cause your timers to be off because the offset will be wrong.</TextBlock>
                            </StackPanel>
                            <TextBlock FontSize="14" FontWeight="Bold" Foreground="#FF000000" Margin="0 0 0 0" TextWrapping="Wrap">Timers with very short durations may be off by up to 3 seconds</TextBlock>
                            <StackPanel Margin="10 0 0 10">
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">SWTOR only updates the combat log file every 3 seconds.</TextBlock>
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">Due to this SWTOR limitation a timer with a duration of 0 - 3 seconds may be delayed by up to 3 seconds.</TextBlock>
                            </StackPanel>
                            <TextBlock FontSize="14" FontWeight="Bold" Foreground="#FF000000" Margin="0 0 0 0" TextWrapping="Wrap">Timer durations should compensate for ability travel times</TextBlock>
                            <StackPanel Margin="10 0 0 10">
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">Many abilities in SWTOR have a travel time to the target to apply an effect (i.e.: DOTs).</TextBlock>
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">This can vary from 1/10th of a second up to a full second.</TextBlock>
                                <TextBlock Margin="0 5 0 0" FontSize="12" FontWeight="Normal" Foreground="#FF000000" TextWrapping="Wrap">You should compensate for this travel time when setting your timers.</TextBlock>
                            </StackPanel>
                        </StackPanel>
                    </Border>
                </Popup>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="10 5 0 0" Grid.Row="2">
                    <TextBlock VerticalAlignment="Center" Padding="0,0,10,0" Foreground="#FF000000">Create A New Timer</TextBlock>
                    <TextBox Name="txtNewTimerName" Width="200" Style="{StaticResource PlainTextBox}"></TextBox>
                    <Button Name="btnCreate" Margin="8 0 0 0" Padding="2" Width="60" Click="btnCreate_Click" Style="{StaticResource PlainButton}">Create</Button>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="10 10 0 0" Grid.Row="3" VerticalAlignment="Stretch">
                    <ListBox Name="lstTimers" Width="220"  Margin="0 0 0 0" SelectionChanged="lstTimers_SelectionChanged" Style="{StaticResource PlainListBox}"></ListBox>
                    <Grid Margin="20 0 0 0" Name="grdFields">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="135"></ColumnDefinition>
                            <ColumnDefinition Width="220"></ColumnDefinition>
                            <ColumnDefinition Width="20"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Row="0" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding txtTimerName}">Name</Label>
                        <Label Grid.Row="1" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblCategory" Target="{Binding cmbCategory}">Category</Label>
                        <Label Grid.Row="2" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding ddlTrigger}">Trigger</Label>
                        <Grid Name="grdCustomTrigger" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="135"></ColumnDefinition>
                                <ColumnDefinition Width="220"></ColumnDefinition>
                                <ColumnDefinition Width="20"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Label Grid.Row="0" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblTriggerType" Target="{Binding ddlTriggerType}">Trigger Type</Label>
                            <Label Grid.Row="1" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblCustomType" Target="{Binding txtCustomType}">Custom Trigger Type</Label>
                            <Label Grid.Row="2" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblTarget" Target="{Binding ddlTriggerTarget}">Trigger Target</Label>
                            <Label Grid.Row="3" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblTargetName" Target="{Binding ddlTriggerTargetName}">Target Name</Label>
                            <Label Grid.Row="4" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblCustomTargetName" Target="{Binding txtCustomTargetName}">Custom Target Name</Label>
                            <ComboBox Grid.Row="0" Grid.Column="1" Name="ddlTriggerType" Margin="0 0 4 2" SelectionChanged="ddlTriggerType_SelectionChanged"></ComboBox>
                            <TextBox Grid.Row="1" Grid.Column="1" Name="txtCustomType" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" TextChanged="TextChangedHandler"></TextBox>
                            <ComboBox Grid.Row="2" Grid.Column="1" Name="ddlTriggerTarget" Margin="0 1 4 1" SelectionChanged="SelectionChangedHandler"></ComboBox>
                            <ComboBox Grid.Row="3" Grid.Column="1" Name="ddlTriggerTargetName" Margin="0 1 4 1" SelectionChanged="ddlTriggerTargetName_SelectionChanged"></ComboBox>
                            <TextBox Grid.Row="4" Grid.Column="1" Name="txtCustomTargetName" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" TextChanged="TextChangedHandler"></TextBox>
                            <Button Name="btnTriggerTypeHelp" Grid.Row="0" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                            <Button Name="btnCustomTriggerTypeHelp" Grid.Row="1" Grid.Column="2"  Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                            <Button Name="btnTriggerTargetHelp" Grid.Row="2" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                            <Button Name="btnTargetNameHelp" Grid.Row="3" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                            <Button Name="btnCustomTargetNameHelp" Grid.Row="4" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                        </Grid>
                        <Label Grid.Row="4" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Name="lblAbilityOrEffect" Target="{Binding txtAbilityOrEffect}">Ability</Label>
                        <Label Grid.Row="5" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding txtInterval}">Duration Seconds</Label>
                        <Label Grid.Row="6" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding txtRepeatCount}">Repeat Count</Label>
                        <Label Grid.Row="7" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding ddlMultiTimerMode}">Multi Timer Mode</Label>
                        <Label Grid.Row="8" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding ddlSoundEffect}">Cancel On Timer</Label>
                        <Label Grid.Row="9" Grid.Column="0" Margin="0 0 0 0" Foreground="#FF000000" Target="{Binding ddlSoundEffect}">Sound Effect</Label>
                        <TextBox Grid.Row="0" Grid.Column="1" Name="txtTimerName" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" TextChanged="TextChangedHandler"></TextBox>
                        <ComboBox Grid.Row="1" Grid.Column="1" Name="cmbCategory" Margin="0 1 4 1" IsEditable="True" SelectionChanged="SelectionChangedHandler"></ComboBox>
                        <ComboBox Grid.Row="2" Grid.Column="1" Name="ddlTrigger" Margin="0 0 4 2" SelectionChanged="ddlTrigger_SelectionChanged"></ComboBox>
                        <TextBox Grid.Row="4" Grid.Column="1" Name="txtAbilityOrEffect" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" TextChanged="TextChangedHandler"></TextBox>
                        <ComboBox Grid.Row="4" Grid.Column="1" Name="cmbTriggerTimerName" Margin="0 1 4 1" IsEditable="True" Visibility="Collapsed"></ComboBox>
                        <TextBox Grid.Row="5" Grid.Column="1" Name="txtInterval" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" TextChanged="TextChangedHandler"></TextBox>
                        <TextBox Grid.Row="6" Grid.Column="1" Name="txtRepeatCount" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" TextChanged="TextChangedHandler"></TextBox>
                        <ComboBox Grid.Row="7" Grid.Column="1" Name="ddlMultiTimerMode" Margin="0 1 4 1" SelectionChanged="SelectionChangedHandler"></ComboBox>
                        <ComboBox Grid.Row="8" Grid.Column="1" Name="cmbCancelTimerName" Margin="0 1 4 1" IsEditable="True" SelectionChanged="SelectionChangedHandler"></ComboBox>
                        <ComboBox Grid.Row="9" Grid.Column="1" Name="ddlSoundEffect" Margin="0 1 4 1" SelectionChanged="ddlSoundEffect_SelectionChanged"></ComboBox>
                        <TextBox Grid.Row="10" Grid.Column="1" Name="txtCustomSound" Style="{StaticResource PlainTextBox}" Margin="0 1 4 1" Visibility="Collapsed" TextChanged="TextChangedHandler"></TextBox>
                        <StackPanel Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="3" Margin="0 4 0 0" Orientation="Horizontal" HorizontalAlignment="Right">
                            <Label Name="lblSaved" Foreground="#FF3F703F" FontWeight="Medium" Visibility="Collapsed" FontSize="13" Padding="0 3 20 0">Saved @ blah blah</Label>
                            <Label Name="lblUnsaved" Foreground="#FFAA0000" FontWeight="Medium" Visibility="Collapsed" FontSize="13" Padding="0 3 20 0">Unsaved</Label>
                            <Button Name="btnSaveTimer" Style="{StaticResource PlainButton}" Margin="0 0 0 0" ToolTip="Save Changes" Click="btnSaveTimer_Click">Save</Button>
                            <Button Name="btnCloneTimer" Style="{StaticResource PlainButton}" Margin="4 0 0 0" ToolTip="Create a new timer that is a clone of this one" Click="btnCloneTimer_Click">Clone</Button>
                            <Button Name="btnCancelTimer" Style="{StaticResource PlainButton}" Margin="4 0 0 0" ToolTip="Cancel Changes" Click="btnCancelTimer_Click">Cancel</Button>
                            <Button Name="btnDeleteTimer" Click="btnDeleteTimer_Click" Style="{StaticResource PlainButton}" Margin="4 0 0 0" ToolTip="Delete this Timer">Delete</Button>
                        </StackPanel>
                        <Button Name="btnNameHelp" Grid.Row="0" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                        <Button Name="btnCartegoryHelp" Grid.Row="1" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock> </Button>
                        <Button Name="btnTriggerHelp" Grid.Row="2" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                        <Button Name="btnAbilityHelp" Grid.Row="4" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                        <Button Name="btnDurationHelp" Grid.Row="5" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                        <Button Name="btnRepeatCountHelp" Grid.Row="6" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick"><TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock></Button>
                        <Button Name="btnMultiTimerModeHelp" Grid.Row="7" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick">
                            <TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock>
                        </Button>
                        <Button Name="btnCancelOnTimerHelp" Grid.Row="8" Grid.Column="2" Margin="0 1 0 1" Style="{StaticResource HoverHelp}" Click="HelpButtonClick">
                            <TextBlock HorizontalAlignment="Center" TextAlignment="Center" FontSize="15">?</TextBlock>
                        </Button>
                        <Button Grid.Row="9" Grid.Column="2" Style="{StaticResource PlainButton}" Margin="0 1 0 1" Padding="0" Name="btnPlay" Click="btnPlay_Click">
                            <Path Margin="1 0 0 0"  Fill="#FF444444" Data="M 0 10 L 5 5 L 0 0 Z"></Path>
                        </Button>
                        <Button Grid.Row="10" Grid.Column="2" Style="{StaticResource PlainButton}" Margin="0 1 0 1" Padding="0" Name="btnBrowseSounds" Click="btnBrowseSounds_Click" Visibility="Collapsed">...</Button>
                        <Popup StaysOpen="False" Name="popNameHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Name</Run> - Unique name that you use to reference this timer.</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popCategoryHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Category</Run> - The timer will appear nested under this category in the Timers menu on the main Window. Use this to organize your timers.<LineBreak></LineBreak>Use \ (backslash) to separate multiple categories</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popTriggerHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Trigger</Run> - The combat log event that causes a countdown to begin. Most triggers are used in combination with the Ability or Effect Name.<LineBreak/><LineBreak/></TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popTriggerTypeHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Trigger Type</Run> determines which type of log entry will trigger the event.</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popCustomTriggerTypeHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Custom Trigger Type</Run> is text that will match a log entry's Effect Type field.<LineBreak/><LineBreak/>This should only be used by advanced users.</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popTriggerTargetHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Trigger Target</Run> will define which party is matched against. The value of <Run FontWeight="Bold">Target Name</Run> will be used for matching
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Source</Run> means the user of the ability or the initiator of the effect must match <Run FontWeight="Bold">Target Name</Run>
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Target</Run> means the recipient of the ability or the effect must match <Run FontWeight="Bold">Target Name</Run>
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Both</Run> means the Source and Target must both match the <Run FontWeight="Bold">Target Name</Run>
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Either</Run> means the Source or the Target must match the <Run FontWeight="Bold">Target Name</Run>
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">None</Run> means the Source and the Target must not match the <Run FontWeight="Bold">Target Name</Run></TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popTargetNameHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Target Name</Run> is the value that will be searched for in the <Run FontWeight="Bold">Target</Run> field.
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">None</Run> means the <Run FontWeight="Bold">Target</Run> field will not be searched - effectively making all results match.
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Self</Run> means the <Run FontWeight="Bold">Target</Run> field will match on your current character.
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Not Self</Run> means the <Run FontWeight="Bold">Target</Run> field will match on anything that is not your current character.
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Custom</Run> means the <Run FontWeight="Bold">Target</Run> field will match on the text in the <Run FontWeight="Bold">Custom Target Name</Run> field</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popCustomTargetNameHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Custom Target Name</Run> defines a custom search string in the <Run FontWeight="Bold">Target</Run> field</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popAbilityHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Ability, Effect or Timer</Run> - the exact Ability Name, Effect Name or Timer Name that causes the timer to trigger.<LineBreak/><LineBreak/>Custom Trigger Types will check both fields.<LineBreak/><LineBreak/>This is required for most Triggers. It is not required for the Combat Start trigger.</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popDurationHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Duration Seconds</Run> sets the countdown duration of the timer.<LineBreak/><LineBreak/>This can be a decimal value of 0 - 1200.
                                    <LineBreak/><LineBreak/>If using the timer to track a cooldown it is common to set this to 2 or 3 seconds before the actual cooldown.
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">If the ability has a travel time you must compensate for it when setting duration</Run>
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Durations of 0 - 3 seconds may be delayed by up to 3 seconds due to SWTOR's Combat Log buffering</Run></TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popRepeatCountHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Repeat Count</Run> sets how many times the countdown will repeat per trigger.<LineBreak/><LineBreak/>The default value of 0 will fire once per trigger.<LineBreak/><LineBreak/>The value can be 0 - 99.<LineBreak/><LineBreak/>Setting the value to 99 will result in the timer repeating continuously on the duration</TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popCancelOnTimer" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Cancel On Timer</Run> set a Timer that when triggered will cause this Timer to cancel.<LineBreak/></TextBlock>
                            </Border>
                        </Popup>
                        <Popup StaysOpen="False" Name="popMultiTimerModeHelp" Placement="MousePoint" MaxWidth="200" AllowsTransparency="True" Focusable="False">
                            <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FF444444" Background="{StaticResource MenuBackground}">
                                <TextBlock FontSize="12" FontWeight="Normal" Foreground="#FF000000" Margin="10" TextWrapping="Wrap"><Run FontWeight="Bold">Multi Timer Mode</Run> what happens when a timer is triggered more than once during it's duration
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Allow Multiple Timers</Run> - A new countdown is started each time a timer is triggered
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Ignore Repeat Timers</Run> - Only the first triggered timer counts down and subsequent triggers during the duration are ignored
                                    <LineBreak/><LineBreak/><Run FontWeight="Bold">Update Timer On Repeat</Run> - The countdown is reset each time it is triggered during its duration</TextBlock>
                            </Border>
                        </Popup>
                    </Grid>
                </StackPanel>
            </Grid>
            <StackPanel Orientation="Horizontal"  Grid.Row="1" HorizontalAlignment="Right" Margin="0 5 0 0">
                <Button Name="btnDone" Padding="2" Width="60" Click="btnDone_Click" Style="{StaticResource PlainButton}">Done</Button>
            </StackPanel>
        </Grid>
        <Border.Effect>
            <DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity=".8" />
        </Border.Effect>
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFF2F2F2" Offset="0" />
                <GradientStop Color="White" Offset="1" />
            </LinearGradientBrush>
        </Border.Background>
    </Border>
</Window>
